package router

import (
	"fx_swift_forex/internal/controller"
	"fx_swift_forex/pkg/middleware"
)

func BeneficiaryRouter() {
	reqApiVer := miniApiVer.Group("beneficiary", middleware.CheckAuth())
	{
		reqApiVer.POST("operatorBeneficiaries", controller.OperatorBeneficiaries)
		reqApiVer.POST("validateBeneficiaries", controller.ValidateBeneficiaries)
		reqApiVer.POST("beneficiaryList", controller.BeneficiaryList)
		reqApiVer.POST("getBeneficiaryRequirements", controller.GetBeneficiaryRequirements)
		reqApiVer.POST("editNickName", controller.EditNickName)

		reqApiVer.GET("getBeneficiaryIdToInfo", controller.BeneficiaryIdToInfo)
	}
}
